package entity

import "time"

type Memory struct {
	ID         int64 `gorm:"primary_key"`
	Title      string
	Content    string
	Longitude  float64
	Latitude   float64
	Icon       string
	User       User `gorm:"ForeignKey:UserID;AssociationForeignKey:ID"`
	UserID     int64
	CreatedAt  time.Time
	LastUpdate time.Time
	Locked     bool
	IsPublic   bool
}

func (Memory) TableName() string {
	return "mp_memory"
}
